package firstTry;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.Panel;

public class addStudent {

	private JFrame frmAddStudent;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					addStudent window = new addStudent();
					window.frmAddStudent.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public addStudent() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmAddStudent = new JFrame();
		frmAddStudent.setTitle("Add Student");
		frmAddStudent.setBounds(100, 100, 501, 300);
		frmAddStudent.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frmAddStudent.getContentPane().setLayout(null);
		
		textField = new JTextField();
		textField.setBounds(284, 30, 200, 28);
		frmAddStudent.getContentPane().add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setBounds(284, 70, 200, 28);
		frmAddStudent.getContentPane().add(textField_1);
		textField_1.setColumns(10);
		
		textField_2 = new JTextField();
		textField_2.setBounds(284, 112, 200, 28);
		frmAddStudent.getContentPane().add(textField_2);
		textField_2.setColumns(10);
		
		textField_3 = new JTextField();
		textField_3.setBounds(284, 152, 200, 28);
		frmAddStudent.getContentPane().add(textField_3);
		textField_3.setColumns(10);
		
		JLabel lblNewLabel = new JLabel("First Name:");
		lblNewLabel.setBounds(170, 36, 102, 16);
		frmAddStudent.getContentPane().add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("Last Name:");
		lblNewLabel_1.setBounds(170, 76, 102, 16);
		frmAddStudent.getContentPane().add(lblNewLabel_1);
		
		JLabel lblNewLabel_2 = new JLabel("Student ID:");
		lblNewLabel_2.setBounds(170, 118, 102, 16);
		frmAddStudent.getContentPane().add(lblNewLabel_2);
		
		JLabel lblNewLabel_3 = new JLabel("Email:");
		lblNewLabel_3.setBounds(170, 158, 102, 16);
		frmAddStudent.getContentPane().add(lblNewLabel_3);
		
		textField_4 = new JTextField();
		textField_4.setBounds(284, 192, 200, 28);
		frmAddStudent.getContentPane().add(textField_4);
		textField_4.setColumns(10);
		
		JLabel lblNewLabel_4 = new JLabel("Device MAC:");
		lblNewLabel_4.setBounds(170, 198, 102, 16);
		frmAddStudent.getContentPane().add(lblNewLabel_4);
		
		JButton btnAddPicture = new JButton("Add Picture");
		btnAddPicture.setBounds(17, 151, 117, 29);
		frmAddStudent.getContentPane().add(btnAddPicture);
		
		JButton btnAdd = new JButton("Add");
		btnAdd.setBounds(367, 243, 117, 29);
		frmAddStudent.getContentPane().add(btnAdd);
		
		JButton btnCancel = new JButton("Cancel");
		btnCancel.setBounds(248, 243, 117, 29);
		frmAddStudent.getContentPane().add(btnCancel);
		
		Panel panel = new Panel();
		panel.setBounds(17, 30, 117, 110);
		frmAddStudent.getContentPane().add(panel);
	}
}
